package com.wwu.system.vo;

import com.alibaba.fastjson2.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.List;

/**
 * 角色菜单实体类
 * @author 一蓑烟雨
 * @version 1.0.0
 * @date 2023-06-30 15:19
 */
@Data
@Accessors(chain = true)
@ApiModel(value="TreeVO:角色菜单实体类", description="角色菜单实体类")
public class TreeVO {
    @ApiModelProperty(value = "节点id")
    @JSONField(ordinal = 1)
    private String id;

    @ApiModelProperty(value = "节点标题")
    @JSONField(ordinal = 2)
    private String title;

    @ApiModelProperty(value = "节点是否展开")
    @JSONField(ordinal = 3)
    private Boolean spread;

    @ApiModelProperty(value = "节点是否选中")
    @JSONField(ordinal = 4)
    private Boolean checked;

    @ApiModelProperty(value = "节点类型")
    @JSONField(ordinal = 5)
    private Integer type;

    @ApiModelProperty(value = "父节点id")
    @JSONField(ordinal = 6)
    private String pid;

    @ApiModelProperty(value = "子节点列表")
    @JSONField(ordinal = 7)
    private List<TreeVO> children;

}
